﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Drawing.Design;

namespace Controls
{
    public class ItemLabel : Label
    {
        private string _colType;

        /// <summary>
        /// 字段类型
        /// </summary>
        [Browsable(true)]
        [Category("1自定义属性")]
        public string ColType
        {
            get { return _colType; }
            set { _colType = value; }
        }

        private bool isQuery = true;

        [Browsable(true)]
        [Category("1自定义属性")]
        public bool IsQuery
        {
            get { return isQuery; }
            set { isQuery = value; }
        }

        private string _otherName;

        /// <summary>
        /// 列别名
        /// </summary>
        [Browsable(true)]
        [Category("1自定义属性")]
        public string OtherName
        {
            get { return _otherName; }
            set { _otherName = value; }
        }
        private string listid;
        [BrowsableAttribute(false)]
        public string Listid
        {
            get { return listid; }
            set { listid = value; }
        }

        [BrowsableAttribute(false)]
        public override string Text
        {
            get
            {
                return  base.Text;
            }
            set
            {
                base.Text = value;
            }
        }
    }
}
